﻿using DHJ.Messages.Production;
using NServiceBus;
using System.Threading.Tasks;
using Abp.Dependency;
using DHJ.Cost.MessageHandle;

namespace DHJ.Cost.ManHours
{
    public class ManHourReportedHandler : IHandleMessages<ManHourReported>
    {
        public async Task Handle(ManHourReported message, IMessageHandlerContext context)
        {
            var handler = IocManager.Instance.Resolve<MessageHandleAppService>();
            await handler.HandleManHourReported(message);
        }
    }
}